﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/NoBannerLayout.Master"
    Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <title>New Post</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript" src="./css/general_functions.js"></script>
    <script type="text/javascript" src="./css/css_style_settings.js"></script>
    <script type="text/javascript" src="./css/ajaxupload.3.5.js"></script>
    <link rel="stylesheet" type="text/css" href="./css/styles.css">
    <script type="text/javascript">
        jQuery.noConflict();


        function ValidEmail(EmailAddress) {
            if ((EmailAddress.indexOf(' ') >= 0) || (EmailAddress.indexOf(';') >= 0) || (EmailAddress.indexOf(',') >= 0) || (EmailAddress.indexOf('@') < 1)) return false;
            if (EmailAddress.substr(EmailAddress.indexOf('@')).indexOf('.') < 2) return false;
            if (EmailAddress.substr(EmailAddress.indexOf('.', EmailAddress.indexOf('@'))).length < 3) return false;
            return true
        }

        function ValidateForm() {
            form1 = document.forms['contact'];
            if (form1.elements['email'].value == '') {
                alert('Please enter a valid e-mail');
                form1.elements['email'].focus();
                return false;
            } else if (!ValidEmail(form1.elements['email'].value)) {
                alert('Please verify your e-mail address');
                form1.elements['email'].focus();
                return false;
            } else if (form1.elements['name'].value == '') {
                alert('Please enter a site name!');
                form1.elements['name'].focus();
                return false;
            } else if (form1.elements['url'].value == '') {
                alert('Please enter a valid URL');
                form1.elements['url'].focus();
                return false;
            } else if (!isValidURL(form1.elements['url'].value)) {
                alert('Please enter a valid URL');
                form1.elements['url'].focus();
                return false;
            } else if (form1.elements['cats_id'].selectedIndex == 0) {
                alert('Please specify a Category for your listing');
                form1.elements['cats_id'].focus();
                return false;
            } else if (form1.elements['site_status'].selectedIndex == 0) {
                alert('Please specify your site status');
                form1.elements['site_status'].focus();
                return false;
            } else if (isBlank(form1.elements['daily_visitors'].value)) {
                alert('Please specify the number of daily visitors');
                form1.elements['daily_visitors'].focus();
                return false;
            } else if (!isValidCommaNumeric(form1.elements['daily_visitors'].value)) {
                alert('Please verify the number of daily visitors');
                form1.elements['daily_visitors'].focus();
                return false;
            } else if ((!isBlank(form1.elements['traffic_pages'].value)) && (!isValidCommaNumeric(form1.elements['traffic_pages'].value))) {
                alert('Please verify the number of page views');
                form1.elements['traffic_pages'].focus();
                return false;
            } else if ((!isBlank(form1.elements['site_members'].value)) && (!isValidCommaNumeric(form1.elements['site_members'].value))) {
                alert('Please verify the number of members');
                form1.elements['site_members'].focus();
                return false;
            } else if ((!isBlank(form1.elements['price'].value)) && (!isValidCurrency(form1.elements['price'].value))) {
                alert('Please verify the asking price');
                form1.elements['price'].focus();
                return false;
            } else if ((!isBlank(form1.elements['disk_space'].value)) && (!isValidCommaNumeric(form1.elements['disk_space'].value))) {
                alert('Please verify the disk space used');
                form1.elements['disk_space'].focus();
                return false;
            } else if ((!isBlank(form1.elements['bandwidth'].value)) && (!isValidCommaNumeric(form1.elements['bandwidth'].value))) {
                alert('Please verify the amount of bandwidth used');
                form1.elements['bandwidth'].focus();
                return false;
            } else if ((!isBlank(form1.elements['run_cost'].value)) && (!isValidCurrency(form1.elements['run_cost'].value))) {
                alert('please verify the cost to run the site');
                form1.elements['run_cost'].focus();
                return false;
            } else if ((!isBlank(form1.elements['income_month'].value)) && (!isValidCurrency(form1.elements['income_month'].value))) {
                alert('Please verify the income per month');
                form1.elements['income_month'].focus();
                return false;
            }


            else if (get_gav_value() == 1 && (isBlank(form1.elements['google_analytics_user'].value) || isBlank(form1.elements['google_analytics_password'].value) || isBlank(form1.elements['google_analytics_account'].value))) {
                alert('Please enter your google Analytics username and password, or select no to Verify Google Analytics');
                if (isBlank(form1.elements['google_analytics_user'].value))
                    form1.elements['google_analytics_user'].focus();
                else if (isBlank(form1.elements['google_analytics_user'].value)) {
                    form1.elements['google_analytics_password'].focus();
                } else {
                    form1.elements['google_analytics_account'].focus();
                }
                return false;
            }
            else if ((!isBlank(form1.elements['google_analytics_user'].value) || !isBlank(form1.elements['google_analytics_password'].value)) && get_gav_value() != 1) {
                alert('To verify Google Analytics you must check the Confirmation as well as input your username and password.');
                form1.elements['google_analytics_verify'].focus();
                return false;
            }

            else {
                return true;
            }
        }
        function sendRequest(gotoPremier) {
            var siteID;
            if (ValidateForm()) {
                new Effect.BlindUp('process_waiting_dialog', { duration: 0 });
                var form1 = document.forms['contact'];
                var cid = form1.categoryId.value;
                new Ajax.Request("sites.php?a=edit_rec&cid=" + cid, {
                    method: 'post', parameters: Form.serialize(form1), asynchronous: false,
                    onSuccess: function (t) {
                        new Effect.toggle('process_waiting_dialog', 'appear');
                        var serverResponse = t.responseText.split("|");
                        var serverCommand = serverResponse[0];
                        siteID = serverResponse[1];
                    }
                });
                if (gotoPremier)
                    window.location.href = "premiere_listing_selection.php?siteId=" + siteID + "&siteURL=" + form1.elements['url'].value;
                else
                    window.location.href = "thankyou_listing.php";
            }
        }

        function newRequest() {
            if (ValidateForm()) {
                document.contact.submit();
            }
        }

        function get_gav_value() {
            for (var i = 0; i < document.forms['contact'].google_analytics_verify.length; i++) {
                if (document.forms['contact'].google_analytics_verify[i].checked) {
                    return document.forms['contact'].google_analytics_verify[i].value;
                }
            }
            return 0;
        }


</script>
    <div class="headline">
        <h1>
            Sell Your Website on WebsiteBroker.com</h1>
    </div>
    <p>
        To get started, please share some information about your website. Don't worry if
        you don't have every fact and figure right now <b> you can always update this information
            later</b>. Your listing on WebsiteBroker will <b>reach tens of thousands of qualified
                buyers</b>. See why we've been helping people sell websites since 1997!</p>
    <form action="http://websitebroker.com/check_login.php" method="POST" name="contact">
    <table border="0" cellpadding="10" cellspacing="0" class="outer">
        <tbody>
            <tr valign="top" class="filter1">
                <td colspan="4">
                    <div style="float: right; font-weight: normal">
                        Please read our <a href="http://websitebroker.com/guidelines.html" target="_blank">guidelines</a>
                        before posting your listing.</div>
                    New Website
                </td>
            </tr>
            <tr valign="top" class="hilite1">
                <td>
                    <b>Listing Type:</b>
                </td>
                <td colspan="3" class="grid">
                    <input type="radio" name="listingtype" checked="checked">
                    Website
                    <input type="radio" name="listingtype" onclick="location.href=&#39;http://websitebroker.com/sites.php?a=edit&amp;cid=0&amp;f=1&#39;">
                    Domain Name
                </td>
            </tr>
            <tr valign="top" class="">
                <td>
                    <b>Contact E-Mail: * </b>
                </td>
                <td colspan="3" class="grid">
                    <input type="text" name="email" value="vuhahoang@gmail.com" size="40">
                    <small><a href="http://websitebroker.com/privacy-policy.html" target="_blank">We respect
                        your privacy</a>.<br>
                        This is how potential buyers will contact you.<br>
                        Your email address will not be posted directly on the site. No spam!</small>
                </td>
            </tr>
            <tr valign="top" class="hilite1">
                <td>
                    <b>Site Name: * </b>
                </td>
                <td colspan="3" class="grid">
                    <input name="name" type="text" value="" size="40" maxlength="60">
                    <small>Title for your listing, be clear and concise.</small>
                </td>
            </tr>
            <tr valign="top" class="">
                <td>
                    <b>Site URL: * </b>
                </td>
                <td colspan="3" class="grid">
                    <input type="text" name="url" value="http://" size="40">
                    <small>Example: http://www.yoursite.com</small>
                </td>
            </tr>
            <tr class="hilite1">
                <td width="100" valign="top">
                    <b>Description &amp; Information: </b>
                    <br>
                    <br>
                    <small>Describe your site as thoroughly as possible.<br>
                        <br>
                        This is where you can really sell it!</small>
                </td>
                <td colspan="3" class="grid">
                    <textarea cols="50" rows="10" name="description" style="width: 460px;"></textarea><br>
                    <input type="checkbox" name="useHtml" value="1">My description contains HTML.<br>
                    If you check this box, then you need to add your own linebreak tags (&lt;p&gt;&lt;/p&gt;
                    or &lt;br&gt;).
                </td>
            </tr>
            <tr class="">
                <td>
                    <b>Category: * </b>
                </td>
                <td colspan="3" class="grid">
                    <select name="cats_id" size="1">
                        <option value="0">--- </option>
                        <option label="Adult (18+ / 21+)" value="5">Adult (18+ / 21+)</option>
                        <option label="Apparel" value="12">Apparel</option>
                        <option label="Arts &amp; Culture" value="11">Arts &amp; Culture</option>
                        <option label="Blog" value="25">Blog</option>
                        <option label="Business &amp; Employment" value="13">Business &amp; Employment</option>
                        <option label="Computers &amp; Technology" value="14">Computers &amp; Technology</option>
                        <option label="Directory" value="6">Directory</option>
                        <option label="E-Commerce" value="2">E-Commerce</option>
                        <option label="Entertainment &amp; Music" value="15">Entertainment &amp; Music</option>
                        <option label="Food &amp; Drink" value="16">Food &amp; Drink</option>
                        <option label="Forum / E-Zine" value="9">Forum / E-Zine</option>
                        <option label="Gaming" value="29">Gaming</option>
                        <option label="General" value="1">General</option>
                        <option label="Gifts &amp; Collectibles" value="17">Gifts &amp; Collectibles</option>
                        <option label="Health" value="18">Health</option>
                        <option label="Kids" value="19">Kids</option>
                        <option label="Legal Site" value="7">Legal Site</option>
                        <option label="Mailing List" value="10">Mailing List</option>
                        <option label="Money &amp; Finance" value="20">Money &amp; Finance</option>
                        <option label="Music" value="26">Music</option>
                        <option label="Other" value="4">Other</option>
                        <option label="Podcast / Videocast" value="27">Podcast / Videocast</option>
                        <option label="Search Engine" value="3">Search Engine</option>
                        <option label="Social Networking" value="28">Social Networking</option>
                        <option label="Software" value="8">Software</option>
                        <option label="Sports &amp; Leisure" value="21">Sports &amp; Leisure</option>
                        <option label="Transportation" value="22">Transportation</option>
                        <option label="Travel" value="23">Travel</option>
                        <option label="Women" value="24">Women</option>
                    </select>
                </td>
            </tr>
            <tr class="hilite1">
                <td>
                    <b>Site Status: * </b>
                </td>
                <td colspan="3" class="grid">
                    <select name="site_status" size="1">
                        <option label="---" value="0">---</option>
                        <option label="Fully Developed Website" value="1">Fully Developed Website</option>
                        <option label="Partially Developed Website" value="2">Partially Developed Website</option>
                        <option label="Mailing and Discussion List" value="4">Mailing and Discussion List</option>
                        <option label="Looking for Venture Capital" value="5">Looking for Venture Capital</option>
                        <option label="Joint Venture Wanted" value="6">Joint Venture Wanted</option>
                        <option label="Looking to Trade" value="7">Looking to Trade</option>
                        <option label="Turn-Key Site" value="8">Turn-Key Site</option>
                    </select>
                </td>
            </tr>
            <tr class="">
                <td width="100">
                    <b>Visitors: * </b>
                </td>
                <td class="grid">
                    <input type="text" name="daily_visitors" value="" size="7">
                    Daily
                </td>
                <td>
                    <b>Page Views:</b>
                </td>
                <td class="grid">
                    <input type="text" name="traffic_pages" value="" size="7">
                    Daily
                </td>
            </tr>
            <tr class="hilite1">
                <td width="100">
                    <b>Income: </b>
                </td>
                <td class="grid">
                    <input type="text" name="income_month" value="" size="7">
                    US$ Per Month
                </td>
                <td>
                    <b>Cost to run site: </b>
                </td>
                <td class="grid">
                    <input type="text" name="run_cost" value="" size="7">
                    US$ Per Month
                </td>
            </tr>
            <tr class="">
                <td>
                    <b>Disk Space used: </b>
                </td>
                <td class="grid">
                    <input type="text" name="disk_space" value="" size="10">
                    MB
                </td>
                <td>
                    <b>Bandwidth used: </b>
                </td>
                <td class="grid">
                    <input type="text" name="bandwidth" value="" size="10">
                    MB per month
                </td>
            </tr>
            <tr class="hilite1">
                <td>
                    <b>Members:</b>
                </td>
                <td colspan="3" class="grid">
                    <input type="text" name="site_members" value="" size="7">
                    Total number of members
                </td>
            </tr>
            <tr valign="top" class="">
                <td width="100">
                    <b>Asking price: </b>
                </td>
                <td colspan="3" class="grid">
                    <small style="float: right; width: 360px;">It is <b>highly</b> recommended you enter
                        a reasonable asking price. Sites with prices receive much more attention from potential
                        buyers than sites listed without prices. You can always go back edit this amount
                        at any time. </small>
                    <input type="text" name="price" value="" size="7">
                    US$
                </td>
            </tr>
            <tr class="hilite1">
                <td>
                    <b>Date Started: </b>
                </td>
                <td colspan="3" class="grid">
                    <select name="date_started_m" size="1">
                        <option label="January" value="1">January</option>
                        <option label="February" value="2">February</option>
                        <option label="March" value="3">March</option>
                        <option label="April" value="4">April</option>
                        <option label="May" value="5">May</option>
                        <option label="June" value="6">June</option>
                        <option label="July" value="7">July</option>
                        <option label="August" value="8">August</option>
                        <option label="September" value="9">September</option>
                        <option label="October" value="10">October</option>
                        <option label="November" value="11" selected="selected">November</option>
                        <option label="December" value="12">December</option>
                    </select>
                    <select name="date_started_y" size="1">
                        <option label="1994" value="1994">1994</option>
                        <option label="1995" value="1995">1995</option>
                        <option label="1996" value="1996">1996</option>
                        <option label="1997" value="1997">1997</option>
                        <option label="1998" value="1998">1998</option>
                        <option label="1999" value="1999">1999</option>
                        <option label="2000" value="2000">2000</option>
                        <option label="2001" value="2001">2001</option>
                        <option label="2002" value="2002">2002</option>
                        <option label="2003" value="2003">2003</option>
                        <option label="2004" value="2004">2004</option>
                        <option label="2005" value="2005">2005</option>
                        <option label="2006" value="2006">2006</option>
                        <option label="2007" value="2007">2007</option>
                        <option label="2008" value="2008">2008</option>
                        <option label="2009" value="2009">2009</option>
                        <option label="2010" value="2010">2010</option>
                        <option label="2011" value="2011" selected="selected">2011</option>
                    </select>
                </td>
            </tr>
            <tr class="">
                <td>
                    <b>Adult content: </b>
                </td>
                <td colspan="3" class="grid">
                    <input type="checkbox" name="adult" value="1">
                    Contains adult content.
                </td>
            </tr>
            <tr class="hilite1" valign="top">
                <td width="100">
                    <b>Business Information:</b><br>
                    <small>Check all that apply </small>
                    <br>
                </td>
                <td colspan="3" class="grid">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tbody>
                            <tr valign="top">
                                <td width="200">
                                    <strong>Income from: </strong>
                                    <br>
                                    <input type="checkbox" name="income_1" value="1">
                                    Selling Products<br>
                                    <input type="checkbox" name="income_2" value="1">
                                    Selling Access to Site<br>
                                    <input type="checkbox" name="income_3" value="1">
                                    Selling Site-related Services<br>
                                    <input type="checkbox" name="income_4" value="1">
                                    Selling Non-Site-related Services<br>
                                    <input type="checkbox" name="income_5" value="1">
                                    Other<br>
                                    <input type="checkbox" name="income_6" value="1">
                                    No Income
                                </td>
                                <td width="140">
                                    <strong>Sold with website: </strong>
                                    <br>
                                    <input type="checkbox" name="sold_1" value="1">
                                    Business<br>
                                    <input type="checkbox" name="sold_2" value="1">
                                    Images &amp; Content<br>
                                    <input type="checkbox" name="sold_3" value="1">
                                    Software<br>
                                    <input type="checkbox" name="sold_4" value="1">
                                    Tradenamed<br>
                                    <input type="checkbox" name="sold_5" value="1">
                                    Original Graphics<br>
                                    <input type="checkbox" name="sold_6" value="1">
                                    3<sup>rd</sup> party Licenses<br>
                                </td>
                                <td>
                                    <strong>Site owns</strong>:<br>
                                    <input type="checkbox" name="own_content" value="1">
                                    All Content<br>
                                    <input type="checkbox" name="own_server" value="1">
                                    Server<br>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr class="">
                <td width="100">
                    <b>Stats available:</b>
                </td>
                <td colspan="3" class="grid">
                    <input type="radio" name="stats_available" value="1">
                    Yes
                    <input type="radio" name="stats_available" value="0" checked="">
                    No
                </td>
            </tr>
            <tr class="hilite1">
                <td width="100">
                    <b>Verify Google Analytics?:</b>
                </td>
                <td colspan="3" class="grid">
                    <input type="radio" name="google_analytics_verify" value="1">
                    Yes
                    <input type="radio" name="google_analytics_verify" value="0" checked="">
                    No
                </td>
            </tr>
            <tr class="">
                <td width="100">
                    <b>Analytics Login:<br>
                        <a href="http://websitebroker.com/verify_googleanalytics.html" target="_blank">Whats
                            This?</a></b>
                </td>
                <td colspan="3" class="grid">
                    Account:
                    <input type="text" name="google_analytics_account" autocomplete="off" value="">
                    <a href="http://websitebroker.com/verify_googleanalytics.html#analytics" target="_blank">
                        What is This?</a><br>
                    Username:
                    <input type="text" name="google_analytics_user" autocomplete="off" value="">
                    <br>
                    Password:
                    <input type="password" name="google_analytics_password" autocomplete="off" value="">
                </td>
            </tr>
            <tr valign="top" class="hilite1">
                <td width="100">
                    <b>Broker Contact:</b>
                </td>
                <td colspan="3" class=" grid">
                    <small style="float: right; width: 360px;">Do you want a website broker to contact you?</small>
                    <input type="radio" name="can_contact" value="1">
                    Yes
                    <input type="radio" name="can_contact" value="0" checked="">
                    No
                </td>
            </tr>
            <tr>
                <td class="text">
                    <b>Email Notification of New Sites</b>
                </td>
                <td class="grid">
                    <input type="checkbox" name="email_notification" value="1">
                </td>
            </tr>
            <tr class="">
                <td>
                    &nbsp;
                </td>
                <td colspan="3" align="left" class="grid">
                    By posting on WebsiteBroker you agree to our <a href="http://websitebroker.com/terms-and-conditions.html"
                        target="_blank">Terms and Conditions</a>.
                </td>
            </tr>
            <tr class="hilite1">
                <td>
                    &nbsp;
                </td>
                <td colspan="3" align="left" class="grid">
                    <div id="process_waiting_dialog" style="display: none;">
                        <div class="filter1" style="padding: 10px; margin: 0 0 10px;">
                            <img src="./css/rotating_arrow.gif" align="absmiddle">
                            Just a Moment, Saving Your Listing...
                        </div>
                    </div>
                    <input type="hidden" name="categoryId" id="categoryId" value="0">
                    <input type="hidden" name="hiddAddEditSite" value="1">
                    <input type="hidden" name="isDomain" value="0">
                    <a href="http://websitebroker.com/sell-your-site.html#" class="button_continue_large"
                        onclick="newRequest(); return false;">Continue</a>
                </td>
            </tr>
        </tbody>
    </table>
    </form>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="SidebarContent" runat="server">
    <script type="text/javascript">
        function viewListingSample() {
            new_window = open('', 'image', 'width=500,height=620', 'toolbar=no,status=no,menubar=no,scrollbars=no,resizable=yes');
            new_window.document.open();
            new_window.document.write('<html><title>Sample Screenshot</title>');
            new_window.document.write('<body bgcolor="#ffffff" style="margin:0; padding:0;">');
            new_window.document.write('<center><img src=/images/listing_screenshot.jpg></center>');
            new_window.document.write('</body></html>');
            new_window.document.close();
            new_window.focus();
        }
		</script>
    <div class="headline">
        <h2>
            Your Listing on WebsiteBroker</h2>
    </div>
    <ul class="points">
        <li>
            <div class="float_l icon_yes">
            </div>
            &nbsp; Reach thousands of buyers</li>
        <li>
            <div class="float_l icon_yes">
            </div>
            &nbsp; Pay no commission</li>
        <li>
            <div class="float_l icon_yes">
            </div>
            &nbsp; Edit your listing anytime</li>
        <li>
            <div class="float_l icon_yes">
            </div>
            &nbsp; Buyers contact your directly</li>
        <li>
            <div class="float_l icon_yes">
            </div>
            &nbsp; 90-day active listings</li>
        <li>
            <div class="float_l icon_yes">
            </div>
            &nbsp; See a <a href="http://websitebroker.com/sell-your-site.html#" onclick="viewListingSample(); return false;">
                Sample Listing</a></li>
        <li>
            <div class="float_l icon_yes">
            </div>
            &nbsp; Listing your site takes 5 minutes</li>
        <li>
            <div class="float_l icon_yes">
            </div>
            <div class="float_l">
                &nbsp; WebsiteBroker is the original<br>
                &nbsp; website-for-sale marketplace.
                <br>
                &nbsp; We've been listing sites for sale
                <br>
                &nbsp; since 1997!</div>
        </li>
    </ul>
    <div class="clear">
    </div>
    <p>
        &nbsp;</p>
    <p align="center">
        <img src="./css/sidebar_support.png" width="100" height="108" alt="Customer Support 1(888) 545-4878"
            style="margin: 0 0 5px;">
    </p>
</asp:Content>
